package com.lijie.ljblog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
@ApiModel(value="Replay对象", description="")
public class Replay implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所属的留言id")
    private Integer liuyanId;
    @ApiModelProperty(value = "回复信息")
    private String message;

    @ApiModelProperty(value = "回复人")
    @JsonProperty("replayPersonOne")
    private Integer replayPersonOne;

    @ApiModelProperty(value = "被回复的人")
    @JsonProperty("replayPersonTwo")
    private Integer replayPersonTwo;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "评论的博客请求ip")
    private String ip;
    @ApiModelProperty(value = "ip地点经度")
    private String jd;
    @ApiModelProperty(value = "ip地点纬度")
    private String wd;
    @ApiModelProperty(value = "ip地址")
    private String location;
    @TableField(exist = false)
    private Person person1;
    @TableField(exist = false)
    private Person person2;

    public Replay() {
    }

    public Integer getReplayPersonTwo() {
        return replayPersonTwo;
    }

    public void setReplayPersonTwo(Integer replayPersonTwo) {
        this.replayPersonTwo = replayPersonTwo;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getJd() {
        return jd;
    }

    public void setJd(String jd) {
        this.jd = jd;
    }

    public String getWd() {
        return wd;
    }

    public void setWd(String wd) {
        this.wd = wd;
    }

    public Person getPerson1() {
        return person1;
    }

    public void setPerson1(Person person1) {
        this.person1 = person1;
    }

    public Person getPerson2() {
        return person2;
    }

    public void setPerson2(Person person2) {
        this.person2 = person2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLiuyanId() {
        return liuyanId;
    }

    public void setLiuyanId(Integer liuyanId) {
        this.liuyanId = liuyanId;
    }

    public Integer getReplayPersonOne() {
        return replayPersonOne;
    }

    public void setReplayPersonOne(Integer replayPersonOne) {
        this.replayPersonOne = replayPersonOne;
    }

    public Integer getReplacePersonTwo() {
        return replayPersonTwo;
    }

    public void setReplacePersonTwo(Integer replacePersonTwo) {
        this.replayPersonTwo = replacePersonTwo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    @Override
    public String toString() {
        return "Replay{" +
        "id=" + id +
        ", liuyanId=" + liuyanId +
        ", replayPersonOne=" + replayPersonOne +
        ", replacePersonTwo=" + replayPersonTwo +
        ", createTime=" + createTime +
        ", location=" + location +
        "}";
    }
}
